package com.bw.service;

import com.bw.entity.User;
import com.bw.mapper.UserMapper;
import lombok.experimental.StandardException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    UserMapper userMapper;

    @Override
    public User selectByName(String name) {
        return userMapper.selectByName(name);
    }

    @Override
    public void updateUserById(User userFromRequest) {
        userMapper.updateUserById(userFromRequest);
    }
}
